/**
 * Copyright (C) 2017-2018 pinganfang, Inc. All Rights Reserved.
 */
package com.pingan.haofang.searchcloud.api.query;

import com.pingan.haofang.searchcloud.api.index.IndexNameGeter;
import com.pingan.haofang.searchcloud.api.jdbc.JdbcDriverInfo;

/**
 * @author huhailiang937
 * @date 2017年5月5日下午4:24:20
 * @since 1.0.0
 */
public class SQLQuery implements IndexNameGeter{

    private String indexName;
    
    private String sql;
    
    private JdbcDriverInfo driverInfo;

    /**
     * @return the sql
     */
    public String getSql() {
        return sql;
    }

    /**
     * @param sql the sql to set
     */
    public void setSql(String sql) {
        this.sql = sql;
    }

    /**
     * @return the driverInfo
     */
    public JdbcDriverInfo getDriverInfo() {
        return driverInfo;
    }

    /**
     * @param driverInfo the driverInfo to set
     */
    public void setDriverInfo(JdbcDriverInfo driverInfo) {
        this.driverInfo = driverInfo;
    }

    @Override
    public String getIndexName() {
        return this.indexName;
    }

    /**
     * @param indexName the indexName to set
     */
    public void setIndexName(String indexName) {
        this.indexName = indexName;
    }
}
